A nice solution for those that can get by with text-only notes.
For storing images I use Microsoft OneNote as more often than not, there is a need to document something with text and images. And search is excellent.
One way to work images in text-only notes is to bake in the path names to the image files on your local drive rather than paste an image into the note. If I'm in terminal I can copy that text with the path, hit cmd n "open" cmd v enter and view the image with the system viewer (preview in this case). If I'm looking at the text file in textedit on mac os, I can actually do this from the right click menu under services after highlighting the path name. Could be a good solution if you are tired of onenote's bloat.