This paper presents a novel algorithm for removing high-density salt and pepper impulse noise from images, consisting of two phases: detecting noisy pixels and replacing them with estimated non-noisy values. The proposed algorithm, PASPIN, is evaluated against various non-linear filtering methods and demonstrates superior performance in terms of restored mean absolute error (RMAE). Experimental results indicate that PASPIN maintains high efficacy across different noise levels without requiring prior knowledge of noise ratios, making it applicable for real-world scenarios.