Is there an image viewer that takes images on STDIN?
ImageMagick's display
program will do just that, assuming you pipe it something that it understands.
cat image.png | display
and it'll pop up a window showing that image.
ImageMagick's display
.
display < foo.png