support endianess in RGBA8888 conversion