Photon interferometry for heavy ion collisions