update callbacks

Updated callbacks to the function takePictures