Normalize mnist images before classification