When drawing the outline of a rectangle, the bounding box must cover the whole pixel of the line. Otherwise the line would be left behind when the rectangle shrinks.