Improve Canvas constructor (see issue #79)

see issue #79