fix edit bug

On IE10 after the image loaded sometimes the containing div did not
expand.