The British-flagged tanker Stena Impero detained by Iran in July is preparing to leave, Will Marks, a spokesman at the vessel’s Swedish owner Stena Bulk said in a text message.