diff --git a/includes/imagecache.inc b/includes/imagecache.inc
index 3ab01f0..2a706cc 100644
--- a/includes/imagecache.inc
+++ b/includes/imagecache.inc
@@ -36,12 +36,7 @@ function template_preprocess_imagecache_insert_image(&$vars) {
   // in the site settings.php file, or by manually running variable_set().
   // For reasons why this might not do what you want and why there's no UI
   // see http://drupal.org/node/640352.
-  $absolute = variable_get('insert_absolute_paths', TRUE);
-  if ($absolute) {
-    $vars['url'] = imagecache_create_url($vars['preset_name'], $vars['item']['filepath']);
-  }
-  else {
-    $vars['url'] = $GLOBALS['base_path'] . imagecache_create_path($vars['preset_name'], $vars['item']['filepath']);
-  }
+  $absolute = (bool) variable_get('insert_absolute_paths', TRUE);
+  $vars['url'] = imagecache_create_url($vars['preset_name'], $vars['item']['filepath'], FALSE, $absolute);
   $vars['class'] = !empty($vars['widget']['insert_class']) ? $vars['widget']['insert_class'] : '';
 }
