Index: galrey-1.0.2/galrey.pl
===================================================================
--- galrey-1.0.2.orig/galrey.pl	2008-08-24 12:24:56.000000000 +0000
+++ galrey-1.0.2/galrey.pl	2008-08-24 12:30:22.000000000 +0000
@@ -253,6 +253,7 @@
 
        createHtml($c_title,
                   $c_outputpath.'/'.$filehtml,
+						$c_imagespath,
                   $current,
                   $next,
                   $previous,
@@ -349,7 +350,7 @@
        $height     = $dimension[1];
        $size       = $dimension[2];
 
-       $identify = `identify -format "%wx%hx%b" "$c_imagespath/$thumb"`;
+       $identify = `identify -format "%wx%hx%b" "$c_outputpath/$thumb"`;
        chomp($t_identify);
        @t_dimension  = split(/x/, $t_identify);
 
@@ -393,6 +394,7 @@
 {
  my $t = shift;
  my $f = shift;
+ my $ip = shift;
  my $c = shift;
  my $n = shift;
  my $p = shift;
@@ -463,7 +465,7 @@
    $line =~ s/\$FIRST\$/$first/g;
    $line =~ s/\$LAST\$/$last/g;
    $line =~ s/\$TITLE\$/$t/g;
-   $line =~ s/\$CURRENT\$/$c/g;
+   $line =~ s/\$CURRENT\$/$ip\/$c/g;
    $line =~ s/\$ID\$/$id/g;
    $line =~ s/\$TOTAL\$/$total/g;
    $line =~ s/\$INDEX\$/$index/g;
