adjusting the image aspect ratio