Photon production in proton-proton collisions at 23.1 GeV