patched file for python2-pillow usage