A small aside - judging by those paths you are on some sort of UNIX-like system, I was under the impression that binmode is only necessary on Windows - have I been misled?
Comment on Re: Image::Magick and outputting to browser
yes, binmode does nothing on systems that don't distinguish between binary and text files. however, it's good practice to include it because that'll be one less thing to have to worry about if you ever decide to port the code to windows.