add support for caching generated static image