modified BackgroundSubtractorMOG2::getBackgroundImage so that it can now...

... work with gray-level images.

Explanation: Although the class in general works for gray level images, getBackgroundImage does not. This PR is an attempt to fix this problem.

Thank you.
Firat