PHOTOPRODUCTION OF PIONS IN CARBON