Added the option to specify the color byte order