taking picture function added