Recenter grid lines after canvas resize