adding support for bezier curves and for lineto