fix getTitleImg function