Improve Skeleton Principle Direction Determination

Further add cleanup_image function to apply simple gaussian blur