Introducing get_thumbnails to fetch thumbnails in batch