Probing medium-modified fragmentation processes with prompt photons