Fix resized images with keepFrame.