Managed to center canvas by forcing its display mode to block