Bug fix when allocating arrays with Bayer color conversion