Good point. So we'll need to test the size with a canvas only made for that purpose. I'll create a pull request.

Eventually we will need a better solution than this workaround anyway, since most HiDPI devices have a limitation in canvas size that we run into, at least with tile layers.