Wikia mobile fix for links in images

@federico-lox please have a look at regular expression

I tried to optimize the regular expressions as much as I could
but you might want to look into them

thanks!