free the output image