python-pillow helper