Our program outputs the image to the standard output stream (std::cout), so leave that alone and instead write to the error output stream (std::cerr):
->
Our program outputs the image to the standard output stream (std::cout), so leave that alone and instead write to the error output stream (std::cerr):