analyze diffraction images and count spots