Use an existing check for canvas capabilities
Use an existing check for canvas capabilities

This results in better compatability with jsdom, allows usage in newer
Jest.

sebmarkbage/art,sebmarkbage/art