Changed image preprocessing to suite neural network better