Select what variant image is showing for the product

I don’t see how that function helps me. I need to modify the images displayed in the product gallery.