save the image after a median filter