escapeTitle should be set to false while generating images as a link.