Added some image caching to the CoreGraphics renderer, which can speed up drawing when images are re-used.