Effect of the virtual pion on photon-induced nuclear reactions