Model Predictive Control and Image Classification