Coherent diffraction imaging through shift-invariant scattering