add bezier curve functionality to contour