update takePicture