Implemented filling rectangle.
Added non-common properties for rectangle and line.