fix image replaced upload bug