explicitly ignore zero dim rects

This is to close #672 

Note: I also removed an extraneous call to `rect` that was in the render function. (filling and stroking are handled in separate loops)