Allows switching the endian encoding of the pixel values.This can be helpful of the wrong endianness was assumed during image loading.