How to Preprocess Medical Images for Machine Learning – A Guide Using Chest X-Rays