added a camera function.