simple camera code