grrr, getting nowhere trying to debug Hilditch's Algorithm for Skeletonization, considering working with distance transform instead