fix #3514: log images table should be cleaned