renamed cerr's implementation of imquantize to avoid naming conflicts with Matlab-native.