bugs: consider autodetection of grayscale bayer.