implement capture photo functionality