add image function to use the camera