taking picture and saving it