Export tie/key points

Well I made it :-)!!! But there is a bit of math behind that