update skeletonization

added regularization of skeleton