Added check for existence of the image linked in node