A screenshot and its note should be recognizable as belonging together, without having to type a name. Dragging a file directly onto another single file is supported by neither TC nor Windows — drop targets are always folders. The link is therefore created by both files sitting in the same subfolder:
StickySnips\tcmd\Lister\
note.snip
screenshot.bmp
The folder name carries the actual meaning here — StickySnips otherwise have no freely chosen name, only an automatic preview of the first characters of their content.
A screenshot can also be dragged without any note straight from ! Screenshots into a normal single-level category (StickySnips\Images\) — just like text. Keeping several images together is then simply an ordinary category with several entries. The depth of the path decides which case applies: one level = standalone pin, two levels = link.
Whichever side of a link is deleted, only the link itself is dissolved — the other element stays fully intact. A deleted image goes back to ! Screenshots, a deleted note only removes the link, the image stays. Same logic as history↔StickySnip: delete one, and the other, independently existing one stays untouched. This does not apply to standalone image pins (one level) — there it really is deleted, since there's no other side that could be kept.
In the Sticky subfolder both files sit visibly side by side. The ! Screenshots folder, however, holds only images, with no visible relation to a note. The Verknuepft column shows the name of the linked note there (empty = not linked) — technically built the same way as the existing custom columns (Edited/Diff/Source/Age).
Two independent limits, because image sizes vary a lot:
[image_capture] max_screenshots=50 max_total_size_mb=200
Whichever is hit first removes the oldest unpinned screenshot. Pinned and linked screenshots are never removed by the limits and don't count toward them.
Linked entries get their own chain-link icon instead of the source app's icon — "this is linked" is more useful at a glance than "which program did this come from". Unlinked entries show the real icon of the source application instead (extracted from its .exe), or — if the source is unknown or the program is gone — a fallback icon, by default the built-in floating eye, which can be replaced with your own .ico via FallbackSourceIcon=.