mv_machine_learning: convert ImageClassification class into template class