Correctly zoom to center when resizing