Fixing a PIL / PILLOW incompatibility.