The influence of a possible pion-pion interaction on the photoproduction of charged pions