in reply to Image::Magick in Mason and STDOUT

If you compare your code to the example at masonbook.com: Generating Something Besides HTML, you'll see many differences; the associated text explains it in detail.