Not sure if you know, but you can setup links to pipe images (and whatever other media you want) to external programs through the Associations menu.
Afterwards pressing Enter or I when an image is selected, a new option “open” will appear.
run links2
Sorry, I was doing something.