High energy gamma ray production in heavy-ion collisions