Optimized computed shapes for stroked rectangles