Adaptive Edge-Based Prediction For Lossless Image Compression