An angular directive for taking photos and sending photo data