implements #40 improves zoomCenter code