Relativistic dispersion relation approach to photomeson production