renamed imquantize to imquantize_cerr to avoid conflicting name with Matlab's built-in function.