bash: Cleanup datauri function