Simple lossy image compression by eliminating low-contrast details