extract_image_features: fix skipping of zero-feature images