Direct photons from relativistic heavy-ion collisions