Adding capability to select the thumbnails with common aspect ratio