How to add an Image in a Menu Item in WPF

This code adds an icon image in front of the menu item header text.

<MenuItem Header="Child1 SubItem" IsCheckable="true">

    <MenuItem.Icon>

        <Image Source="Tree.jpg" Width="20" Height="20" />

    </MenuItem.Icon>

</MenuItem>