add capture photo functionality