correct improperly closed img tags