When you upload pictures to the web, you immediate put them at risk. I’m a professional photographer and I live by that risk every day. There are no codes or methods that are going to stop anyone from taking your pictures. Even if you disable right-click, there are other means no limited to screen captures.
The only way to protect your images is to not upload them at all.
Disabling right clicks is not only annoying but at the end is useless. Even if right-click is disabled, one can always drag and drop the image onto the desktop et voilà.