No that’s not haram, because even though the name of the Imam is mentioned, we are not worshipping the Imam. The name of the Imam is just a blessing on the torbah. That’s like prostrating on a piece of paper that has someone’s name on it—that’s not haram.