To calculate the lat, lon of points in the image.
Update.
Correct the writing of the files.