fixed the aspect ratio of images