That kind of scaling would have to be done on the client side with Javascript, since the server doesn't know the dimensions of the image at the specified URL. I think the way Invision Board does it is pretty nice... maybe I could implement something like that. :/
Random example:
http://forum.mininova.org/index.php?showtopic=235...=findpost&p=523203