#1276 replace pil with pillow