Index: thickbox.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/thickbox/thickbox.module,v
retrieving revision 1.18.2.17
diff -u -p -r1.18.2.17 thickbox.module
--- thickbox.module	24 Mar 2009 14:25:36 -0000	1.18.2.17
+++ thickbox.module	28 May 2009 13:47:57 -0000
@@ -205,9 +205,7 @@ function thickbox_field_formatter($field
  */
 function theme_imagefield_image_imagecache_thickbox($namespace, $field, $path, $alt = '', $title = '', $gid = '', $attributes = NULL) {
   if (!empty($path)) {
-    $attributes = drupal_attributes($attributes);
-    $imagecache_path = imagecache_create_url($namespace, $path);
-    $image = '<img src="'. $imagecache_path .'" alt="'. check_plain($alt) .'" '. $attributes .' />';
+    $image = theme('imagecache', $namespace, $path, $alt, $title, $attributes);
 
     if ($presetname = variable_get('thickbox_imagecache_preset', 0)) {
       $link_path = imagecache_create_url($presetname, $path);
