Compatibility with Pillow