Added width / height parameters for CachedGraphics