before centring canvas