Fixed center on canvas function
Added center for both axis