Considering that there are three "image"- related libraries/class imports here (let alone any custom stuff), I would consider referencing them in a more distinguishing manner.  Since I think using the namespace is cleaner than changing the name multiple times here, I'd recommend keeping the PIL.___ instead of using these conventional individual "from" imports.