Fixed handling of wikicode in image labels in visual editor

Links in image labels are now handled properly. In order to do that,
nested [[ are now parsed in a loop instead of regex.

Change-Id: Ie194f57bd5c693a02450d70c1e409449a3143caf
Merge "Fixed handling of wikicode in image labels in visual editor"