I did geometric correction using the equations from Benner's book. My solution is very similar to jbuck1 solution. I tried to face with taylor series but i find it useless or just too hard to understand and implement. After all I would like to thank everyone but jbuck 1 solution was definitely the best in my case.
If anyone is interested in implementation of this solution in python pleas let me know.