Crude prices rose on Friday as traders closed short positions and strong U.S. gasoline demand supported the market.