still stuck on skeletonization, working with distance+threshold again