Fixed reading of RAW8 and RAW16 heightmaps

Fixed reading of RAW8 and RAW16 heightmaps to read top-left to bottom-right instead of bottom-right to top-right.