Oil prices up as gasoline demand in US rises