'Avatar' becomes highest-grossing film of all time