fix update image bug in unix