A model for the γp→ π+π−p reaction