A Segmented Wavelet Inspired Neural Network Approach to Compress Images