i can't find other ways for that
only way is loading texture by file path `dxCreateTexture("img.png")` to let cpp load that file
you can delete the file after you loaded that but it happens when script loaded if player download the img and left the server before it loads the client can save that file at other place