Ability to build data URI with custom function.