title: Is there a way to specify the width of a rectangle in PIL?
body: <p>I'm trying to draw thick rectangles onto an image using ImageDraw Module of PIL/pillow. </p>
  
  <p>I tried using <code>draw.rectangle([x1, y1, x2, y2], outline='yellow', width=3)</code> but it doesn't seem to like the width parameter. </p>
  
  <p>I can emulate what I want to do with a bunch of lines, but I was wondering if there is a proper way of doing it.</p>
  
  <pre><code>'''
  coordinates = [(x1, y1), (x2, y2)]
  
      (x1, y1)
          *--------------
          |             |
          |             |
          |             |
          |             |
          |             |
          |             |
          --------------*
                        (x2, y2)
  
  '''
  
  def draw_rectangle(drawing, xy, outline='yellow', width=10):
      top_left = xy[0]
      bottom_right = xy[1]
      top_right = (xy[1][0], xy[0][1])
      bottom_left= (xy[0][0], xy[1][1])
  
      drawing.line([top_left, top_right], fill=outline, width=width)
      drawing.line([top_right, bottom_right], fill=outline, width=width)
      drawing.line([bottom_right, bottom_left], fill=outline, width=width)
      drawing.line([bottom_left, top_left], fill=outline, width=width)
  </code></pre>