Changing the image size mantaining the aspect ratio.