finally centered the canvas