context2d support for bezier and quadratic curves