Added function iosScaledImageWithCapInsets.