fix upload image bug