change to pillow instead of PIL