Bug fix handling image header when analyze_image is not set