added threading for image pre-processing an normalization, which is actually slower...