Fix for Pillow 2.1.0 and above