Oil prices up on weaker dollar and lower inventories