Take scale into account when centering