drawing rectangles inside a table cell