You can use
var spath
var sprite_texture = preload (spath)
$Sprite.texture = sprite_texture
And by just changing spath you can now edit in your script, as for external files you can try using a file dialogue node to load images in game which I'm still battling with so can't help much in that department.
Cheers!!