A Novel Noise Filter for Removing Impulse Noise from Digital Images