Fix image caching