diff --git a/includes/imagecache.inc b/includes/imagecache.inc
index 3ab01f0..3aacc7f 100644
--- a/includes/imagecache.inc
+++ b/includes/imagecache.inc
@@ -37,11 +37,6 @@ function template_preprocess_imagecache_insert_image(&$vars) {
   // 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']);
-  }
+  $vars['url'] = imagecache_create_url($vars['preset_name'], $vars['item']['filepath'], FALSE, $absolute);
   $vars['class'] = !empty($vars['widget']['insert_class']) ? $vars['widget']['insert_class'] : '';
 }
