test scripts for image thresholding, image gradient, and fitting the point spread function