Added the ability to style rectangles.