fixed crash if image link could not be found