Use parser.getMapAttrs instead of using custom for loop
Add support alt of img and remove previous rule