--- jimage.module.old	2008-11-12 09:49:00.000000000 +0700
+++ jimage.module	2008-11-18 22:48:30.188522461 +0700
@@ -374,15 +374,21 @@
  * Load file derivatives.
  */
 function jimage_load($node) {
-  $img_paths = array();
   $images    = array();
   if ($node->vid) {
     $result = db_query('SELECT f.fid, f.filename, f.filepath, r.description, r.list, d.origpath, d.smallpath, d.thumbpath, d.mainpath FROM {files} f INNER JOIN {upload} r ON f.fid = r.fid INNER JOIN {jimage} d ON f.fid = d.fid WHERE r.vid = %d ORDER BY r.weight, f.fid', $node->vid);
     while ($file = db_fetch_object($result)) {
+      if(!isset($img_paths)) {
+        $img_paths->nid = $file->nid;
+        $img_paths->smallpath = $file->smallpath;
+        $img_paths->thumbpath = $file->thumbpath;
+        $img_paths->mainpath = $file->mainpath;
+      }
       $images[$file->fid] = $file;
     }
   }
-  $img_paths = db_fetch_object(db_query_range('SELECT d.nid, d.smallpath, d.thumbpath, d.mainpath FROM {jimage} d WHERE d.vid = %d', $node->vid, 0, 1));
   return array('image' => $images, 'path' => $img_paths);
 }
 
@@ -432,6 +438,7 @@
           );
         }
       }
+      //echo $node->content['jimage']['#value'];
       break;
 
     case 'viewimage':
@@ -479,4 +486,4 @@
   $output .= l($text, $path, $options);
   $output .= '</div>';
   return $output;

--- jimage.theme.inc.old	2008-11-12 09:49:00.000000000 +0700
+++ jimage.theme.inc	2008-11-18 22:10:43.083451866 +0700
@@ -21,7 +21,7 @@
   $output  = '';
   $output .= '<div class="container">';
   $output .= '<div class="loader">';
-  $output .= '<h5>Click on an small image to view it full size.</h5>';
+  $output .= '<h5>'.t('Click on an small image to view it full size.').'</h5>';
   $text    = '<img src="' . base_path() . $imgpath->mainpath . '" />';
   $options = array(
     'html' => TRUE,
