in reply to Re: Tricking a filename argument to use STDOUT
in thread Tricking a filename argument to use STDOUT
The output needed to be flushed. It was printing the content header in the middle of the image. Thanks to everyone who replied. Special thanks to ikegami.