adapt to newer libksane interface
starting with KDE Gear 21.08, there is a new interface available to retrieve the scanned image data from libksane. Besides the simpler interface, support for 16 bit images is now automatically included.
Only compile tested.