finish active contour