CONTOUR BASED SHAPE REPRESENTATION FOR IMAGE COMPRESSION AND ANALYSIS