diff -ruN pathauto.orig/pathauto_taxonomy.inc pathauto/pathauto_taxonomy.inc
--- pathauto.orig/pathauto_taxonomy.inc	Tue May 10 03:59:24 2005
+++ pathauto/pathauto_taxonomy.inc	Sun May 29 01:40:49 2005
@@ -68,21 +68,25 @@
               $catpath = '';
               $parents = taxonomy_get_parents_all($category->tid);
             }
-            
+
             foreach ($parents as $parent) {
               $catpath = $parent->name.'/'.$catpath;
             }
             $placeholders[t('[catpath]')] = $catpath;
 
-            $src = 'taxonomy/term/'.$category->tid.'/0';
+	    if ($vocabulary->module == 'image') {
+	      $src = 'image/tid/'.$category->tid.'/0';
+	    } else {
+	      $src = 'taxonomy/term/'.$category->tid.'/0';
+	    }
             $alias = pathauto_create_alias('taxonomy', $op, $placeholders, 
               $src, $vocabulary->name);
           }
           break;
         case 'delete':
           /*
-      	  ** If the category is deleted, remove the path aliases
-      	  **
+	  ** If the category is deleted, remove the path aliases
+	  **
           */
           $category = array2object($object);
           path_set_alias('taxonomy/term/'.$category->tid);
@@ -125,7 +129,11 @@
     }
     $placeholders['[catpath]'] = $catpath;
 
-    $src = 'taxonomy/term/'.$category->tid.'/0';
+    if ($vocabulary->module == 'image') {
+      $src = 'image/tid/'.$category->tid.'/0';
+    } else {
+      $src = 'taxonomy/term/'.$category->tid.'/0';
+    }
     if ($alias = pathauto_create_alias('taxonomy', 'bulkupdate',
                   $placeholders, $src, $vocabulary->name)) {
       $count++;
@@ -138,4 +146,4 @@
     "Bulk update of terms completed, %count aliases generated."));
 }
 
-?>
\ No newline at end of file
+?>
