Choose the correct core method to use the camera object.
camera
Make sure to pick takePhoto().
takePhoto()