Pillow wrapper for PIL compatibility