maintenance stuff
implement bitmap caching.