--- /dev/null
+<?php
+$filename = $GLOBALS["file"]["name"];
+# comment this to have the file extensions
+$filename = substr($filename, 0, strrpos($filename, '.')); 
+?>
+<div class="imagefilename"><a href="<?= $GLOBALS["file"]["link"] ?>"><?= $filename ?></a></div>
 
 }
 .square {
        display: inline-block;
+       vertical-align: top;
+       height: <?= THUMB_SIZE ?>px;
 }
 .image, .foldername, .image_nopreview, .foldername_nopreview {
        display: table-cell;
 
 <div id="images">
 <?php foreach ($imageFiles as $file) { ?>
-       <div class="square"><div class="image"><a href="<?= $file["link"] ?>"><img src="<?= $rootUrl.getPreview($file["file"]) ?>" alt="<?= $file["name"] ?>" /></a></div></div>
+       <div class="square"><div class="image"><a href="<?= $file["link"] ?>"><img src="<?= $rootUrl.getPreview($file["file"]) ?>" alt="<?= $file["name"] ?>" /></a></div><?php plugins_include("after_thumb.php") ?></div>
        <?php if (isset($generating)) { ob_flush(); flush(); } ?>
 <?php } ?>
 </div>