Support for 16 and 32 bit images for Convert driver

This fixes a problem w.r.t. the conversion from 16 bit and 32 bit images into 8 bit grayscale.
The PR adds a parameter to set the expected range of values of 16-32 bit images (especially for infrared and depth images)