Caching thumbnail images.