image_lib.c updated now explain Segmentation in C