im1 = im.resize((tilesize, tilesize), Image.BILINEAR)
if os.path.exists(tilefilename):
    im0 = Image.open(tilefilename)
Getting rid of thin border at edge with transparency when antialiasing with Python Image Library 