here is a new template code for
skin1/modules/detailed_product_images/product_images.tpl
Code:
{* $Id: product_images.tpl,v 1.10 2003/08/11 10:45:10 svowl Exp $ *}
{if $images ne ""}
{section name=image loop=$images}
{if $images[image].avail eq "Y"}
{if $images[image].tmbn_url}
[img]{$images[image].tmbn_url}[/img]
{else}
[img]{$xcart_web_dir}/product_image.php?imageid={$images[image].imageid}[/img]
{/if}
{/if}
{/section}
{/if}
try that, the code was taken from a 3.5.4 install
all i have done is removed the dialog border that surrounds it.
BTW, i didnt test this so backup your original first