Complete img process & Debug byte-endian issues