This page shows an example of replacing an image when an error occurs.
This is a normal image, it works just fine

This image cannot be found

This image is replaced by some javascript when an error occurs (such as the image not being found) so that something is always displayed to the user

The images used on this page are Copyright © 2012 & 2013 Colin Angus Mackay.