added curveTo (quad beziers) and merged in a fix from nanovg