improved contour drawing in contour picking program