GEOT-4544, ImageWorker rescaleToBytes choke with 16 bits IndexColorModel
Merge pull request #259 from geosolutions-it/9.x-up

GEOT-4544, ImageWorker rescaleToBytes choke with 16 bits IndexColorModel