swap order of pixels for geomapping