The image you are showing in 2022 is from Quad meeting which has 4 counties Australia, India, Japan, and the United States.
You are comparing G7 where India is not even a member still PM Modi is there on photo unlike MMS who was invited but was not part of photo.