Thank you so much @Jiaz and @pspzockerscene, that was fast!
I think my problem was checking the source code through and old version (something similar than the one available at github that doesn't extend XFileSharingProBasic)
Just one small thing, I notice from my example link that the picture is saved as "6wfkkzpt0bhx.jpg".
**External links are only visible to Support Staff****External links are only visible to Support Staff**
Do you think the name could be taken from the original url, or from the "alt" attribute that is included in the html within the img tag?
<img id="imgpreview" src="**External links are only visible to Support Staff** style="border: 1px #e4e4e4 solid; max-width: 90%;margin-top: 20px;" class="pic" alt="test.jpg" onclick="ghisthendsx()">