Prediction by Partial Approximate Matching for Lossless Image Compression