mahmood ghaznavi a looter?

I think pakistan shud not drag ghaznavi to its side, he is hero of afghanistan.
there was no agriculture in afghanistan, so afghan kings like ghaznavi, ghauri, abdali etc used to loot india to run their country.
mahmood broke statue for gold not islam.
mahomood is hero for afghans but we become happy like childs to call any one our hero who had damaged hindus.