An opaque beamstop far-upstream of the detector reduces background scattering. Increased signal-to-background ratio in the diffraction patterns. Simultaneous ptychographic reconstruction of two data sets with and without beamstop. Result shows high spatial resolution of 13 nm of a weakly scattering catalyst sample. High sensitivity to less than 105 atoms.