LPS-48171 Simplify the code, we will leave attributes as they come.
LPS-48171 Add support for attribute map on img elements (Java parser implementation)