Add support for less than 8 bits RGB image