Refactor some codes. Change SIFT detection criteria.