centering legacy canvas