add photo taking functionality