--- imagecache.module.orig	2009-04-29 17:19:06.000000000 +0200
+++ imagecache.module	2009-05-02 11:49:03.109375000 +0200
@@ -653,7 +653,9 @@ function theme_imagecache_formatter_defa
     return '';
   }
 
-  list($presetname, $style) = explode('_', $element['#formatter'], 2);
+  preg_match('/(.*)_(.*)$/', $element['#formatter'], $matches);
+  $presetname = $matches[1];
+  $style = $matches[2];
   $item = $element['#item'];
   $item['data']['alt'] = isset($item['data']['alt']) ? $item['data']['alt'] : '';
   $item['data']['title'] = isset($item['data']['title']) ? $item['data']['title'] : NULL;
@@ -668,7 +670,9 @@ function theme_imagecache_formatter_link
     return '';
   }
 
-  list($presetname, $style) = explode('_', $element['#formatter'], 2);
+  preg_match('/(.*)_(.*)$/', $element['#formatter'], $matches);
+  $presetname = $matches[1];
+  $style = $matches[2];
   $item = $element['#item'];
   $item['data']['alt'] = isset($item['data']['alt']) ? $item['data']['alt'] : '';
   $item['data']['title'] = isset($item['data']['title']) ? $item['data']['title'] : NULL;
@@ -685,7 +689,9 @@ function theme_imagecache_formatter_imag
     return '';
   }
 
-  list($presetname, $style) = explode('_', $element['#formatter'], 2);
+  preg_match('/(.*)_(.*)$/', $element['#formatter'], $matches);
+  $presetname = $matches[1];
+  $style = $matches[2];
   $item = $element['#item'];
   $item['data']['alt'] = isset($item['data']['alt']) ? $item['data']['alt'] : '';
   $item['data']['title'] = isset($item['data']['title']) ? $item['data']['title'] : NULL;
@@ -702,7 +708,9 @@ function theme_imagecache_formatter_path
     return '';
   }
 
-  list($presetname, $style) = explode('_', $element['#formatter'], 2);
+  preg_match('/(.*)_(.*)$/', $element['#formatter'], $matches);
+  $presetname = $matches[1];
+  $style = $matches[2];
   $item = $element['#item'];
 
   return imagecache_create_path($presetname, $item['filepath']);
@@ -714,7 +722,9 @@ function theme_imagecache_formatter_url(
     return '';
   }
 
-  list($presetname, $style) = explode('_', $element['#formatter'], 2);
+  preg_match('/(.*)_(.*)$/', $element['#formatter'], $matches);
+  $presetname = $matches[1];
+  $style = $matches[2];
   $item = $element['#item'];
 
   return imagecache_create_url($presetname, $item['filepath']);
