Scale an image using the given new width and height