ENH: If input image float/double, rescale 0-32767 and convert to short