added support for data URIs