BytesToColors function (untested)