TEST: added noise to input images and gradients