--- inline.module.orig	2007-04-18 04:22:27.000000000 -0700
+++ inline.module_thickbox	2008-06-19 15:59:07.000000000 -0700
@@ -269,7 +269,8 @@
   
   if (variable_get('inline_link_img', '1')) {
     $attributes = array(
-      'class' => 'inline-image-link',
+      'class' => 'inline-image-link thickbox',
+      'rel' => 'gallery-' . $file->nid,
       'title' => t("View") .': '. $title,
     );
     $html = l($image, $file->filepath, $attributes, NULL, NULL, FALSE, TRUE);
