Thanks for your response and your snippet! I think I’ll be able to use it to accomplish what I want.
The image in question that would sometimes be chosen was an icon in PNG format with transparent background. (https://dev.rhinehartphotography.com/wp-content/uploads/2020/10/rotatephone-white.png) I assume sometimes people would want images with transparent backgrounds to be selected, but in my instance it wasn’t the best choice available on the page.
Nice work! That was a really quick update. I’ve updated my original review accordingly.