clear output before render the image