Implementation of lossy image/video compression using vector quantization (or block quantization) algorithm