could use layer.background here directly.