Extracting bottleneck features for an image