Implement retry in camera