Fixing jpg caching