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