http://search.cpan.org/~tonyc/Imager-0.94/lib/Imager/Files.pod#Input_and_output
fh - fh is a file handle, ... $image->write(fh => \*STDOUT, type => 'gif') or die $image->errstr;
$image->write(fh => \*STDOUT, type => 'gif') or die $image->errstr;