He underlined the need of ridding the society of extremism and terrorism , saying they are hurting Pakistan 's image by their actions .