Image interpolation stuff

Added a function to quantize list values to obtain integer values for
image interpolation