Implemented ShapeElement and screen resizing.