I wonder if this method does not worth to be added to build/utils.js as a getFileAsDataURI(path)?