Study of the pion photoproduction process on the basis of dispersion relations