Introducing the _prepare_grayscale_input_2D function in feature.util