Oil prices reversed early losses after U.S. crude inventories declined far more than expected last week.