image_matcher: fix for errno reporting