add canvas as dependency