Fix incompatibility between av_z and denoise options in SPH images