Neural network image quantization