take photo and send data back to app