Text this: Enhancement of medical image compression by using threshold predicting wavelet-based algorithm