Fix for PIL