Fix conversion between pixel to lon/lat. Add a test for conversion.