added to choose if its 10bit or 16bit bayer, but 16bit crash with out of array index