Linear Algebraic Methods in Image Compression