code for Jake  to segment dendrites
consistency with imScale
local path changes