diff --git a/.gitattributes b/.gitattributes
index 0470abbe294333107d35a243de35ad45bbf451a7..fd0718e817c39bb63bb1d337c98d1e69f39411fb 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,8 +1,8 @@
 * text=auto !eol
 IMG/document-vierge.gif -text
-IMG/type_defaut-dist.png -text
-IMG/type_ram.png -text
-IMG/type_rm.png -text
+IMG/icones/type_defaut-dist.png -text
+IMG/icones/type_ram-dist.png -text
+IMG/icones/type_rm-dist.png -text
 NAVPICS/big-logo-spip.gif -text
 NAVPICS/logo-spip.gif -text
 NAVPICS/medium-logo-spip.gif -text
diff --git a/IMG/type_defaut-dist.png b/IMG/icones/type_defaut-dist.png
similarity index 100%
rename from IMG/type_defaut-dist.png
rename to IMG/icones/type_defaut-dist.png
diff --git a/IMG/type_ram.png b/IMG/icones/type_ram-dist.png
similarity index 100%
rename from IMG/type_ram.png
rename to IMG/icones/type_ram-dist.png
diff --git a/IMG/type_rm.png b/IMG/icones/type_rm-dist.png
similarity index 100%
rename from IMG/type_rm.png
rename to IMG/icones/type_rm-dist.png
diff --git a/ecrire/inc_texte.php3 b/ecrire/inc_texte.php3
index 03d1776f02643d940a4ff2d5fd452e6f674e96c5..06bc8ac5f6d14f4aa3cb09490f616f6a86e0415a 100644
--- a/ecrire/inc_texte.php3
+++ b/ecrire/inc_texte.php3
@@ -69,9 +69,9 @@ function ereg_remplace($cherche_tableau, $remplace_tableau, $texte) {
 //
 function vignette_par_defaut($type_extension, $align = '') {
 	if ($GLOBALS['flag_ecrire'])
-		$img = "../IMG";
+		$img = "../IMG/icones";
 	else
-		$img = "IMG";
+		$img = "IMG/icones";
 
 	$filename = "$img/type_$type_extension";