Direct photon production from pions and protons at 200 GeV/c