Made canvas module optional (fixes #1)