Add checks for invalid image attributes on nodes