--- /Applications/MAMP/contributions/modules/asset/asset.module	2008-02-25 20:31:59.000000000 +0100
+++ asset.module	2008-03-04 15:18:12.000000000 +0100
@@ -363,8 +363,10 @@ function asset_lightbox($assets, $previe
     $a = asset_load(array('aid' => $asset['aid']));
     if (in_array($a->extension, $is_image)) {
       // If it's an image and imagecache configuration has been done, display the imagecached version
-      if (function_exists('theme_imagecache') && variable_get('asset_imagecache', '')) {
-        $img  = theme('imagecache', variable_get('asset_imagecache', ''), $a->filepath, $asset['caption'], $asset['caption']);
+      $imagecache = asset_get_default_formatter('local', $a->extension, FALSE);
+      if (function_exists('theme_imagecache') && substr($imagecache, 0, 11) =="imagecache:") {
+      	list($imagecache, $preset) = split(":", $imagecache);
+        $img  = theme('imagecache', $preset, $a->filepath, $asset['caption'], $asset['caption']);
       }
       else {
         $img  = theme('image', $a->filepath, $asset['caption'], $asset['caption']);        
