new version with good matches, need to make the imwrite working.