We describe a method for image transmission through an aberrating medium by means of a modified configuration for conventional ghost diffraction with classical incoherent beams. On the basis of optical coherence theory, we show that the effects of phase disturbances, be they deterministic or random, can be canceled out in our method and the squared modulus of the Fourier transform of the object is obtained in terms of intensity-correlation measurements. From the measurement data, the object can be reconstructed using standard phase retrieval algorithms.