Text this: Improved thresholding and quantization techniques for image compression