Thermal and prompt photons at RHIC and the LHC