improved Bayer decode.