camera test code