allow pattern and gradient without id, apply pattern/gradient after node added to layer