helper to create data uri from file
images for PDF
move js templaets to the bottom of layout so they don't slow down the page
[fixes #76107284] add map to planner

also factor image blobs out of js