Centering line vertically on canvas