fixes to get_thumbnails