When scaling the image, do not allow floats, to avoid white line.

We noticed that in some cases, the scaling leaves a white line at the border of the image in iOS8.