support for reading image from STDIN