faster center finding, fixes #64