Added function iosScaledImage.