Proper centering for rect and arcs