Generate base64 data URL's for images and other files.