Fix iOS6 issue with very big (in dimensions) images.