incorporating keypoints detection