Implemented piping of stream for raw image.