Fixes for thumbnail caching