Forgot to initialize canvas. Working with simple example.