Image Compression by 2D Motif Basis