Added function to add noise to image.