how to use camera functions