Are image attachments leaked after deleted images/notes?

This forum post should be relevant:

At present, how long attachments are kept after being unlinked from all notes is determined by the "Keep note history for" setting.