Fix bug, where towardCenter was measuring from topLeft instead of center