resized image 1st