hacking together contour-only feature matching