dist_transform uses final skeletons. Fixed slicing issue.