Making pop-up window that resizes to the picture it contains. How?

How on earth do I make a pop-up window that resizes to the picture it contains? In short terms:

When clicking the thumb a pop-up window appear containing the picture. My problem is this: If the image don’t exactly fit my pop-up, I end up with an ugly-looking white area around it.

Can u help me?
:p:

This needs to be posted in Client Side… not random…

but since I’m on a mac… with OS9,2… and using IE5… the thread tools doesn’t work… :sure:

i posted this on client side!!!