A multipole analysis of pion photoproduction in the first resonance region