Extraction of cosmological information from multiimage gravitational lenses