more work on caching images