added functionality to tell if an image has a broken link and replace it with an image