lossless RGB decoding now functional