Resonance formation in photon-photon collisions