There is no problem whatsoever with saying any blessings while there is a picture of a Rabbi on the wall. In fact, many very great rabbis were very supportive of the idea that pictures of this type be put on the walls of homes, so that both the adults and the children can be constantly reminded of those who spend all their times involved in nothing but Torah.