initial work on the rectangle renderer