I don't know how you've installed pillow, but my install is inside the PIL namespace

So i've changed the import to support that. (I used a plain install from the requirements.txt btw).

Also, when i went to save, a lot of PEP8 errors popped up. So i fixed them.