Dev linux

Fixed segfault on train after enable SHOW_IMAGE flag
Fixed floating segfault on train call
Memory limit capacity fix reverted (need code refactoring in future)