Modify Canvas class to work with new Context.
Some common functions declarations affected, so code becomes more
broken.