Hi, You could use a php script like this to view your images.
<?
$image = "/images/".$i;
$height = $h;
$width = $w;
echo "\n<body style=\"margin: 0px;\">\n";
echo "<img src=\"$image\" width=\"$width\" height=\"$height\">\n";
echo "</body>\n";
?>
you would define the image, width, height like this.
file.php?i=some.image.gif&w=10&h=10
Aslong as you had an image in /images called some.image.gif this will work and get rid off the margins using css.
Hope this helps,
Elfyn