Fix a issue that a images size is changed after EditTeX