Gravar-mail: A Multiscale Denoising Framework Using Detection Theory with Application to Images from CMOS/CCD Sensors