Make resized image scale correctly