Add some basic bitmap caching support