title: How to paste a PNG image with transparency to another image in PIL without white pixels?
body: <p>I have two images, a background and a PNG image with transparent pixels. I am trying to paste the PNG onto the background using Python-PIL but when I paste the two images I get white pixels around the PNG image where there were transparent pixels.  </p>
  
  <p>My code:  </p>
  
  <pre><code>import os
  from PIL import Image, ImageDraw, ImageFont
  
  filename='pikachu.png'
  ironman = Image.open(filename, 'r')
  filename1='bg.png'
  bg = Image.open(filename1, 'r')
  text_img = Image.new('RGBA', (600,320), (0, 0, 0, 0))
  text_img.paste(bg, (0,0))
  text_img.paste(ironman, (0,0))
  text_img.save("ball.png", format="png")
  </code></pre>
  
  <p>My images:<br>
  <a href="https://i.stack.imgur.com/BcUf3m.png" rel="noreferrer"><img src="https://i.stack.imgur.com/BcUf3m.png" alt="enter image description here"></a> <a href="https://i.stack.imgur.com/tC7som.png" rel="noreferrer"><img src="https://i.stack.imgur.com/tC7som.png" alt="enter image description here"></a>  </p>
  
  <p><strong>my output image:</strong><br>
  <a href="https://i.stack.imgur.com/IZtSP.png" rel="noreferrer"><img src="https://i.stack.imgur.com/IZtSP.png" alt="enter image description here"></a>  </p>
  
  <p>How can I have transparent pixels instead of white?</p>