Porting to Pillow
See #620 and #254
+ PEP 8