fixed edit bug created after add img function.