fix update image bug