Extract feature vector from image