Shirk is to associate partners with Allah. If we do good, we do it for our own good and primarily to please Allah. You are not doing your action to be rewarded by the Imam however saying that the imam is proud and pleased is fine as it does not involves an act of shirk