Adding image caching to build