resize the image to the post view.