refactor: use createObjectURL through a wrapper method