An analysis of single pion photoproduction in the second resonance region