Added code to make sure main camera is selected, and handle front camera if dev chooses to switch using it