How to take a picture of the user on click?

Please elaborate