correction canvas + ajout gestion path