So is this only needing the 2nd image/media out of the product media array or the only image on a variant.
If needing the product featured_image is there a reason the featured_image is not normally the first.
It’s not uncommon for stores to use the ALT text with a naming convention to parse|liquid-filter for associating different images with different things like a color variant-options. While still trying to be valuable semantic information for accessibility concerns and SEO, i.e. “Color: Brown, picture of a leather couch with legs raising it off the floor”.