fix image apply error.