Jet-medium photons as a probe of parton dynamics