patched image caching