Change the height and width of the original image after resize