feat(shell/function): add datauri function + refactoring