Export and use the html canvas of an image grid in a script

I'd like to be able to generate an image grid and then make that image grid HTML canvas available as an image either for download or for processing in another component/script. Is this possible today? I have experimented with a grid and a text with markdown.