bit depth hard coded for chad now, will later be adjusted for any input images