first contour is always reversed, next contours are not