This document compares the performance of image restoration techniques in the time and frequency domains. It proposes a new algorithm to denoise images corrupted by salt and pepper noise. The algorithm replaces noisy pixel values within a 3x3 window with a weighted median based on neighboring pixels. It applies filters like CLAHE, average, Wiener and median filtering before the proposed algorithm to further remove noise. Experimental results on test images show the proposed method achieves better noise removal compared to other techniques, with around a 60% increase in PSNR and 90% reduction in MSE. In conclusion, the proposed algorithm is effective at restoring images with high density salt and pepper noise.