Data URI creation works, need to get it to call those functions before writing to file.