added handler for (base64) data URIs
added missing require