Changing aspect ratio of thumbnail image.