Rectangular selection, press Enter (instead of simpleCut), simple contour building (combine drawContour and editContour), coloring.
All classes: Coloring.cs, Contour.cs, ContourBuilding.cs, Processing.cs, Node.cs, NodeFunction.cs, NodesFactory.cs was written without changes.
All for single Main image.