Crude prices rise as the dollar weakens