Extract single particle diffraction patterns from an exposure of many particles