image segmentation patched; feature extraction updated