There's another way to achieve this in a more malicious way. Granted I haven't tried it in years, but it was possible back in 2017 when I tested it. The idea is to fake the image that's being displayed in the IMG element by forcing it to show a `background-image` using `height: 0;` and `padding-top`. In theory, you could make an IMG element show a photo of puppies and if the person chose to Right-click > Save Image A…
This is the same method used to prevent hot linking to images back in the day.