added fix for the ios version of the image resizer