Fix thumbnail caching