helpers for dataURIs