--- imagecache.module.old	2008-05-03 22:53:43.823148600 +0200
+++ imagecache.module	2008-05-03 22:53:56.078285536 +0200
@@ -552,10 +552,13 @@ function imagecache_field_formatter($fie
     $item = array_merge($item,  _imagecache_file_load($item['fid']));
   }
 
-
-  $parts =  explode('_', $formatter);
-  $style = array_pop($parts);
-  $presetname = implode('_', $parts);
+  if (strpos($formatter, '_') && preg_match('/^(.*)_(linked|imagelink|path|url)?$/', $formatter, $matches)) {
+    array_shift($matches);
+    list($presetname, $style) = $matches;
+  }
+  else {
+    $presetname = $formatter;
+  }
  
   $class = "imagecache imagecache-$presetname imagecache-$style imagecache-$formatter";
   
