updated main processor to toggle between color and depth