adding camera code to shared code