Why isn't my product image updating fully with the python SDK?

I am updating the product image via the python shopify SDK

image = shopify.Image({"product_id": product_id, "id": image_id})
image.attach_image(
raw_image.read(), "{}_{}_result.png".format(product_id, image_id)
)
image.save()

after the update, I go to my products and see that the thumbnail of the image has been updated and its enlarged version remains as it is.

Hii @pasha00m ,
You can Refresh your page with CTRL + SHIFT + R Key
and if you try to upload a jpg file so that is already background filled so it does not look like it according to you.
I wanna suggest you upload the png file, which is already background cropped.

Hi.
Resetting the cache does not help.
I am replacing the current image with an image in .png format.