Using ``CGContextBeginPath`` and related APIs
