PIL's rectangle doesn't support the width argument. so if we want to change the width of line, we have to use ImageDraw.Draw(im).line four times. So I suggest the PIL's rectangle will support the width argument.
The line width would be nice to be able to specify on all basic shapes - for example ellipses as well.
Please see PR https://github.com/python-pillow/Pillow/pull/3094.
Most helpful comment
Please see PR https://github.com/python-pillow/Pillow/pull/3094.