I don’t use node js. In my single file wikis, I use tiddlyclip plugin with add on and savemedia add on for saving images. I just take screenshots of the images and then select the image saving rule from the tiddlyclip context menu (which appears on right click). Thats it …the image get saved in the subdirectory of my wiki folder (in a folder named media) and the image is referenced in the tiddler using relative path in this format [img[relative path]]. Title of the image will be based on the title of the tiddler in which image is saved.