refactor face sketch, remove duplicate code