Layer can have a width and height attribute.