support for 24-bit color input

Have tested with TIFFs from REMUS