Least-Squares Congealing for Large Numbers of Images