Code beneath takes an image and runs it through a python script. Everything works great locally. On production mode it does not seem to run (Droplet on digital ocean).