> IMO the ideal solution some generic right-click (context menu) function/handler. you attach it to each image
Ideally, you would only have a single event listener that handles events for all images.
Ideally, you would only have a single event listener that handles events for all images.