Added support for 24 bit