added bayer() to convert rgb to raw...