resized and pixel flattened into ready-to-use training data