CoreGraphics wrapper library - handling CGContextRef.