cache thumbnails first