DRY up creating output canvas