Photonuclear reactions and dispersion relations