title: How do i change the background color in python of this combined png image?
body: <p>I have the following code that works great except, however it produces a black background image, and i would like it to be white.  I have tried changing bg_color but anything I change it to still keeps the black background.  Is there also a way that i can make a box around each image that i am combining?</p>
  <pre><code>direction = 'vertical'
  bg_color=(1,1,1,1)
  aligment='center'
  
  images = [Image.open(x) for x in ['LVISF2_ABoVE2019_0801_R2003_084168.TXT_ZG.png', 'LVISF2_ABoVE2019_0801_R2003_084168.TXT_RH95.png']]
  widths, heights = zip(*(i.size for i in images))
  
  if direction=='horizontal':
      new_width = sum(widths)
      new_height = max(heights)
  else:
      new_width = max(widths)
      new_height = sum(heights)
  new_im = Image.new('RGB', (new_width, new_height), color=bg_color)
  offset = 0
  for im in images:
      if direction=='horizontal':
          y = 0
          if aligment == 'center':
              y = int((new_height - im.size[1])/2)
          elif aligment == 'bottom':
              y = new_height - im.size[1]
          new_im.paste(im, (offset, y))
          offset += im.size[0]
      else:
          x = 0
          if aligment == 'center':
              x = int((new_width - im.size[0])/2)
      elif aligment == 'right':
          x = new_width - im.size[0]
          new_im.paste(im, (x, offset))
          offset += im.size[1]
  
  new_im.save('test4.jpg')
  </code></pre>