Implemented the camera api