Using Pillow instead of PIL