A small utility to check for broken images and replace their sources if they are in fact broken. Uses the error event