Add support for canvas layers

it's used in the tiles.forEach loop on line 95.