A mean shift algorithm for drift correction in localization microscopy