[TASK] Get flag image only when required

This patch saves some database queries when using text only links in language menus.
Merge pull request #249 from bjo3rnf/languageflag

[TASK] Get flag image only when required