support np.float and coerce unsigned 32 bit and other integer types
remove custom histogram code and use scikit-image