--- imagecache.module.orig	2006-11-17 15:27:13.000000000 -0600
+++ imagecache.module	2006-11-17 15:28:10.000000000 -0600
@@ -77,7 +77,7 @@
 
 
   $destination = file_create_path() . '/imagecache/'. $preset['presetname'] .'/'. $path;
-  $tmpdestination = file_directory_temp() . str_replace(dirname($path), '', $path);
+  $tmpdestination = file_directory_temp() . '/' . $preset['presetname'] . str_replace(dirname($path) . '/', '', $path);
   $dir = dirname($destination);
   //drupal_set_message('$tmpdestination: '. $tmpdestination);
   //drupal_set_message('$destination: '. $destination);
