normalizes img tags and also adds a class if the image tag is on its own or around text so we can better automatically position them