Build full data uris with correct handling of mimetypes.