Classifying computer generated graphics and natural image based on image contour information