changed CachedGraphics destroyOnNoUse from var to property