Simplify imagemap_on_infobar function

We can get the topic number using regex, and the board number
is not relevant any more.