For PIL and Pillow