Fix the problem of writing image to the output stream