Distilling knowledge of neural networks for image analysis, model compression, data protection and minimization