reverse contour and add scale path sample code
refactor the contour structure, find upper line, rewrite move contour function