meters per pixel calculation fixed

starting to rename global vars