MultiImageLayer and FlatLayer now use the same code for arranging nodes, rather than then same logic twice.