Fix MongoDB syntax error in ImageLog.delete_files