Continuing evolution of the path detection/selection.  Also added a thinning.cpp file for skeletonization