In a large skillet, cook the rice, celery and onion in butter, stirring constantly, until rice is browned. Stir in the next six ingredients; bring to a boil. Reduce heat; cover and simmer for 15 minutes. Stir in the pimientos if desired. Remove from the heat and let stand, covered, for 10 minutes.