adding camera functionality