getSmoothContour function

Smooth contour from anchors