Early version of paletted conversion funcs