Real-time error correction algorithm for noise-corrupted JPEG bit-streams