add new method for fitting diameter of sphere using minimization of pixelwise differences