title: Is there another way to fill the area outside a rotated image with white color? 'fillcolor' does not work with older versions of Python
body: <p>I want to rotate a black and white image. I am trying to use the rotate function as follows:</p>
  
  <pre><code>image.rotate(angle, fillcolor=255)
  </code></pre>
  
  <p>I am required to older versions of Python and Pillow, and they do not support the 'fillcolor' argument. I cannot upgrade to the newer versions due to certain restrictions and cannot use any external libraries.</p>
  
  <p>Is there another way to fill the area outside the rotated image with white color using Pillow?</p>
  
  <p>Rotated image has black color in the area outside the rotated part. I want to fill it with white color.</p>
  
  <p>Original : <a href="https://i.stack.imgur.com/mFul4.png" rel="nofollow noreferrer">Original image</a></p>
  
  <p>Rotated :<a href="https://i.stack.imgur.com/7cdlB.png" rel="nofollow noreferrer">Rotated image</a></p>