added averaging and standard deviation calculations in order to throw out error match points when calculating the actual translation of the image