Fixed noisy image so that values never go below 0 or above 1.