use pillow instead of PIL