Index: InsertNode.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/InsertNode/InsertNode.module,v
retrieving revision 1.2.2.12
diff -u -p -r1.2.2.12 InsertNode.module
--- InsertNode.module	14 Mar 2010 08:20:32 -0000	1.2.2.12
+++ InsertNode.module	21 Mar 2010 17:16:21 -0000
@@ -195,6 +195,12 @@ function InsertNode_theme() {
       'template' => 'InsertNode-book-children',
       'file' => 'InsertNode.pages.inc'
     ),
+    'InsertNode_imagecache' => array(
+      'arguments' => array(
+        'filename' => NULL,
+        'imagecache' => NULL,
+        'type' => NULL,
+      ),
   );
 }
 
Index: InsertNode.pages.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/InsertNode/Attic/InsertNode.pages.inc,v
retrieving revision 1.1.2.26
diff -u -p -r1.1.2.26 InsertNode.pages.inc
--- InsertNode.pages.inc	14 Mar 2010 08:20:32 -0000	1.1.2.26
+++ InsertNode.pages.inc	21 Mar 2010 17:16:21 -0000
@@ -170,6 +174,30 @@ function _InsertNode_replacer($matches) 
         }
         break;
 
+      case 'imagecache':
+        // Check for imagecache module
+        if (module_exists('imagecache') && module_exists('imagefield')) {
+          list($field_name, $imagecache_value, $type, $index) = split(':', $p);
+          // Make sure everything is filled out and the imagecche exsits
+          if (!empty($field_name) && !empty($imagecache_value)) {
+
+            // Get the index
+            $index = empty($index) ? 0 : $index;
+
+            // Set the link type
+            $type = empty($type) ? 'default' : $type;
+
+            // Get the file name
+            $image_field = $node->$field_name;
+            $filename = $image_field[$index]['filepath'];
+
+            $output .= theme('InsertNode_imagecache', $filename, $imagecache_value, $type);
+          }
+        }
+
       case 'cck':
         if ($p == 'body') {
           // the user wants to see the body as is (without decorations)
@@ -423,6 +492,23 @@ function theme_InsertNode_comments($node
 }
 
 /**
+ * Theme a imagefield using image cache
+ */
+function theme_InsertNode_imagecache($filename, $imagecache, $type) {
+  switch ($type) {
+    case 'link':
+      $content = theme('imagecache_imagelink', $imagecache, $filename);
+      break;
+
+    case 'default':
+      $content = theme('imagecache', $imagecache, $filename);
+      break;
+  }
+
+  return '<div class="insert-node-imagecache">' . $content . '</div>';
+}
+
+/**
  * Theme the final result where $output represents all the node
  * data concatenated as specified by the user.
  */
