I’ve had trouble with this as well. It seems I had the most trouble in SU 22. You can try cutting and pasting from older saved versions of components into empty newer versions. When you do, make sure “Redefine thumbnail on save” is selected in Model Info → File.
Also, if you have Trays open, those seem to offset the image. For example, I have two Trays on the right so I move further to the left than ‘normal’ to get a better thumbnail.
Here is an example showing the same component, just re-saved from SU 22 to SU 24 open in my folder browser extension.
Here I resaved a few times just to show the result.
If you are creating a thumbnails folder with your extension, recreate them after re-saving.
I create the directory if it does not exist. So, if I want to update them I delete the folder that contains the thumbnails. Then it is recreated when I open the extension again. But you could modify the code.