Changed output format to 24 bit