add new diameter fitting method pixelwise