In a large saucepan, saute onion in oil until tender. Stir in the garlic, cumin, salt and cayenne; cook and stir for 1 minute. Add beans and mash. Add water; cook and stir until heated through and water is absorbed. Remove from the heat; stir in lime juice.