switch to Pillow instead of PIL