Diffraction-contrast imaging of excited-state cold atoms