use imageUploadButton(id, text);
to get the uploaded image:
onEvent(id, "change", function() { console.log(getImageURL(id)); }