capture a picture and save it into sd card