Fixed bug in salt-pepper noise, code now runs with multiple layers and walkback.