spaces near images are replaced by &nbsp;