resizeImage method finished.

TODO: Try resize the image with respect body (only if the image has not
parent).