--- img_assist.module.ori	Thu Dec 14 09:41:42 2006
+++ img_assist.module	Fri Dec 22 22:37:00 2006
@@ -937,6 +937,13 @@ function img_assist_properties() {
         '#default_value' => variable_get('img_assist_default_insert_mode', 'filtertag'),
         '#options' => array('filtertag' => t('Filter Tag'), 'html' => t('HTML Code')),
       );
+      $form['relattr'] = array(
+        '#type' => 'textfield',
+        '#title' => t('Enter link REL text'),
+        '#size' => 25,
+        '#maxlength' => 255,
+        '#description' => NULL,
+      );
       $form[] = array('#value' => "</div>\n");
     } else {
       $form['insertmode'] = array(
@@ -1305,7 +1312,7 @@ function theme_img_assist_inline($node, 
   $link = explode(',', $attributes['link']);
 
   if ($link[0] == 'node') {
-    $output .= l($img_tag, "node/" . $node->nid, array(), NULL, NULL, FALSE, TRUE);
+    $output .= l($img_tag, "node/" . $node->nid, array('rel' => $attributes['relattr']), NULL, NULL, FALSE, TRUE);
 
   } elseif ($link[0] == 'popup') {
     $popup_size = variable_get('img_assist_popup_label', 'preview');
