Unrelated to this PR, but curious for some time: why can't we use `layer.id` here, as we do with `layer.background` and `layer.preview`?