--- flash_gallery.module
+++ flash_gallery_NEW.module
@@ -65,10 +65,10 @@
       }
       $breadcrumb[] = array('path' => 'fgallery/', 'title' => t('Image galleries'));
       $breadcrumb = array_reverse($breadcrumb);
-      drupal_set_title($gallery->name);
     }
     $breadcrumb[] = array('path' => $_GET['q']);
     menu_set_location($breadcrumb);
+    drupal_set_title(($gallery->name ? $gallery->name : t('Image galleries')));
     $output .= theme('flash_gallery', $galleries, $tid);
   }
   else {
@@ -79,7 +79,7 @@
 
 function theme_flash_gallery($galleries, $tid) {
   // We'll add height to keep thumbnails lined up.
-  $size = _image_get_dimensions('thumbnail');
+  $size = image_get_sizes('thumbnail');
   $width = $size['width'];
   $height = $size['height'];
 
@@ -87,7 +87,7 @@
   if (count($galleries)) {
     $content.= '<ul class="galleries">';
     foreach ($galleries as $gallery) {
-      $content .= '<li style="height : '.$height .'px">';
+      $content .= '<li>';
       if ($gallery->count)
         $content.= l(image_display($gallery->latest, 'thumbnail'), 'fgallery/'.$gallery->tid, array(), NULL, NULL, FALSE, TRUE);
       $content.= "<h3>".l($gallery->name, 'fgallery/'.$gallery->tid) . "</h3>\n";
