Fixed the Camera and added snapshot function.