Migrating from PIL to Pillow