Fixing bug in _remove_border_keypoints