Fix painting of SVG <image> when the image must be scaled to retain aspect ratio