Radiative pion capture in 12C