Fix color decoding of incoming images