Acid thanks did the changes in JPG.html file works great now here is my file thumbnail_bit.html I haven't change it because from your post looks different the lines you put now in this one what I need to change.
<!-- you wish detail page in a small javascript open window, use {thumbnail_openwindow} -->
<table border="5" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
<tr>
<td>{thumbnail}</td>
</tr>
</table>
<b>{image_name}</b><br />