If you want to look at what the Buf contains, you need to "say $image" or "print $image.gist" or "print $image.perl".
If you want to put it into a file, use spurt (which can accept a Buf and realize it's supposed to write out binary), or use the write method on a file handle (best opened with :bin so that it knows not to encode and stuff). HTH - Timo