replaces PIL with Pillow