added feature extraction and image loading code