Borders on some images

Hi, I seem to be having a related problem with my .jpg images in PsychoPy v2020.1.3. All of the images have thin black borders-- including two examples. These are images I padded to be square with the default background gray (same issue when padded w/ other colors though). Just like in the suggestion, the borders disappear on most images when settings are switched from ‘linear’ to ‘nearest’ but I’m hoping to not have this loss in image quality for all stimuli.

No borders appeared for corresponding square .png images (transparent borders), but because of the large number of pictures, the online study took a long time to load and I was hoping to use the much smaller jpg set.

Any tricks or workarounds for this? Could I edit the jpg image set somehow or use a mask? Many thanks!

(Dell Windows 10 laptop / Intel UHD Graphics / Python 3.8.2)