fixed byteorder, scale improvements... todo fix inversion + mirroring