I've pasted an image on a background, but I'm currently facing a problem where I don't know how to round the corners of the pasted image. I want to round the image that is kept in the user variable from the script below.
import io, requests
from PIL import Image
user = Image.open(io.BytesIO(requests.get('https://cdn.discordapp.com/attachments/710929396013334608/720738818667446282/65578836_2994649093913191_1181627229703939865_n.jpg').content)).resize((40, 40))
back = Image.new('RGB', (646, 85), (54, 57, 63))
byteImg = io.BytesIO()
back.save(byteImg, format='PNG', quality=95)
back = Image.open(io.BytesIO(byteImg.getvalue()))
back.paste(user, (15, 23))
back.save('done.png') # Should save to the current directory