Added cmake variable to control image processing bitdepth