title: Python PIL TypeError: integer argument expected, got float
body: <p>I keep getting this error when running a paste script in Python 3.x:
  TypeError: integer argument expected, got float</p>
  
  <pre><code>from PIL import Image
  img=Image.open('C:\Mine.jpg','r')
  img_w,img_h=img.size
  background = Image.new('RGBA', (1440,900), (255, 255, 255, 255))
  bg_w,bg_h=background.size
  offset=((bg_w-img_w)/2,(bg_h-img_h)/2)
  background.paste(img,offset)
  background.save('C:\new.jpg')
  </code></pre>
  
  <p>Error MSG:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Users\*****\workspace\Canvas Imager\src\Imager.py", line 7, in &lt;module&gt;
      background.paste(img,offset)
    File "C:\Python33\lib\site-packages\PIL\Image.py", line 1127, in paste
      self.im.paste(im, box)
  TypeError: integer argument expected, got float
  </code></pre>
  
  <p>I see that there is suppose to be an integer but is getting a float in the end. What can I do to make it int instead?</p>