Loading DICOM that is embedded into an html file?

I currently generate QA reports (coil testing etc) as html files that include rendered images as base64 blobs into the file (essentially pre-rendered svg generated with matplotlib).

I’m thinking about trying to improve the reports using something built on cornerstone so that the images can be interacted with more easily for review. But I would prefer to keep everything as a single file and not have serve the DICOM. So my thought would be to do something like stuff the DICOM in as base64 data and load them into simple cornerstone views.

I’m new to cornerstone (and not very experienced with javascript) so I’m just looking for guidance and making sure I haven’t missed something obvious. I think that what I need to do is craft a new Image Loader?