Une idée qui fonctionne chez moi : mettre photo1 en variable globale...

EDIT : Il y a des réponses et explications ici : Image non afficher