Callback of takePicture
Called when error occurs.
Called when state "inProgress".
Called when successful.