Exploring the LHC medium with direct photons