Refactor: Support retry and image post degree.