Added a new setting PATH_SNAPPING_DISTANCE to control paths snapping distance