removes periods before image tags