wrap datauri in an image tag if it's an image mimetype