working on making takepictures async