Made width and height optional on layers