Now PIL works correctly at resizing the images