Automatic glitch elimination of scanning probe microscopy images.