Example of using an externally-created canvas