added SkeletonizeImage function