changed dataUri methods to use the data-uri module