changed it so keypoints are drawn correctly