Could you have not added to the show_block_img;
<div id="ImgTitle" onmouseover="showTitle();" onmouseout="hideTitle();"><?php echo $image->file_name ?></div>
Then just add a function to your base Index Template of;
function showTitle()
{
var ImgTitle = document.getElementById('ImgTitle');
ImgTitle.style.display = 'block';
}
function hideTitle()
{
var ImgTitle = document.getElementById('ImgTitle');
ImgTitle.style.display = 'none';
}
That way you could stylize the div to suit your needs and just have it show and unshow on hover.
Also, this reduces the amount of "hacking" you need to do to base files for HikaShop for when you update it.
.: ETA :.
Oh, you'd need to add to the default CSS of the #ImgTitle that its 'display' is initially set to 'none' so that it isn't visible before hover.