add Bayer decoding
correct RGB buffer size