A phenomenological analysis of pion photoproduction