updated image caching