replace dummy canvas by globally obtaining.