The image recognition code for the camera