The Images section of the following document
https://developers.google.com/apps-script/html_service
says that only images hosted on a public url can be displaye
You can embed your images using base 64 encoding.
function getFileBase64s(fileName) {
var output = [];
if (typeof fileName === 'string'){
var fileIterator = DriveApp.getFilesByName(fileName);
while (fileIterator.hasNext()) output.push(Utilities.base64Encode(fileIterator.next().getBlob().getBytes()));
} else {
SpreadsheetApp.getUi().alert('File name: '+fileName+' is not an string')
};
return output;
};
In your HTML template:
getFileBase64s('fileName').forEach(function(fileBase64){ ?>
}) ?>