Adds image caching