separating initializer so contentedgeinset can be used.