read width and height info from dat, and first version of homography