added code to swap (switch) camera.