Replacing PIL with pillow