open camera code