Image Enhancement in Optics and Ultrasound using Nonlinearity