best implementation to get thumbnails