changed camera size and frame rate, first attempt at switching modes
added debug data