Preprocess Image Data For Machine Learning