shape: add missing padding bytes to GetRectangles