in reply to Image::Magick and outputting to browser

You probably need to specify the content-type of what you are sending to the browser. Something like the following should do:
print "Content-type: image/png\n\n"; binmode STDOUT; $x = $image->Write(.png:-');
Michele.