Reworked For-each parser, plugin-image-paths will be mapped to correct
directory, variables in img and a tags will also be mapped correctly