I'm using PIL to convert images to icons
From PIL import Image
img = Image.open(logo.png)
img.save('logo.ico')
it works by creating the logo.ico file, but then it always shows the first image i converted from, if i change the logo.png to another image, it doesn't change the logo.ico from the first image..
also when i convert to .ico the image gets streched weirdly even when i specify the dimentions
those two problems don't happen if i'm converting to other image formats, like from png to jpg for example.
Edit: managed to solve the first problem by creating new.ico files every time using random names for each new one.