title: Show product thumbnail on woocommerce New Order email
body: <p>I have a WordPress / WooCommerce site running and I'd like to edit the email that admins receive, when an new order is received, to show the thumbnail of the product.
  I copied the template to my theme directory -<code>/themes/mytheme/woocommerce/emails/admin-new-order.php</code>:</p>
  
  <pre><code>    &lt;?php echo $order-&gt;email_order_items_table( true, false, true, true, array( 150, 150 )     ); ?&gt;
  </code></pre>
  
  <p>And this is the code from <code>woocommerce/classes/class-wc-order.php</code> file:</p>
  
  <pre><code>    /**
   * Output items for display in html emails.
   *
   * @access public
   * @param bool $show_download_links (default: false)
   * @param bool $show_sku (default: false)
   * @param bool $show_purchase_note (default: false)
   * @param bool $show_image (default: false)
   * @param array $image_size (default: array( 32, 32 )
   * @param bool plain text
   * @return string
   */
  public function email_order_items_table( $show_download_links = false, $show_sku = false, $show_purchase_note = false, $show_image = false, $image_size = array( 32, 32), $plain_text = false ) {
  
      ob_start();
  
      $template = $plain_text ? 'emails/plain/email-order-items.php' : 'emails/email-order-items.php';
  
      woocommerce_get_template( $template, array(
          'order'                 =&gt; $this,
          'items'                 =&gt; $this-&gt;get_items(),
          'show_download_links'   =&gt; $show_download_links,
          'show_sku'              =&gt; $show_sku,
          'show_purchase_note'    =&gt; $show_purchase_note,
          'show_image'            =&gt; $show_image,
          'image_size'            =&gt; $image_size
      ) );
  
      $return = apply_filters( 'woocommerce_email_order_items_table', ob_get_clean() );
  
      return $return;
  }
  </code></pre>
  
  <p>This is the code from <code>/plugins/woocommerce/templates/emails</code></p>
  
  <pre><code>&lt;?php
   /**
    * Email Order Items
    *
    * @author         WooThemes
    * @package    WooCommerce/Templates/Emails
    * @version     2.0.3
    */
  
        if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
  
        global $woocommerce;
  
        foreach ($items as $item) :
  
  // Get/prep product data
  $_product = $order-&gt;get_product_from_item( $item );
  $item_meta = new WC_Order_Item_Meta( $item['item_meta'] );
  $image = ($show_image) ? '&lt;img src="/wp/'. current(wp_get_attachment_image_src( get_post_thumbnail_id( $_product-&gt;id ), 'thumbnail')) .'" alt="img" height="'.$image_size[1].'" width="'.$image_size[0].'" style="vertical-align:middle; margin-right: 10px;" /&gt;' : '';
  
  ?&gt;
  &lt;tr&gt;
      &lt;td style="text-align:left; vertical-align:middle; border: 1px solid #eee; word-wrap:break-word;"&gt;&lt;?php
  
          // Show title/image etc
          echo    apply_filters( 'woocommerce_order_product_image', $image, $_product, $show_image);
  
          // Product name
          echo    apply_filters( 'woocommerce_order_product_title', $item['name'], $_product );
  
          // SKU
          echo    ($show_sku &amp;&amp; $_product-&gt;get_sku()) ? ' (#' . $_product-&gt;get_sku() . ')' : '';
  
          // File URLs
          if ( $show_download_links &amp;&amp; $_product-&gt;exists() &amp;&amp; $_product-&gt;is_downloadable() ) {
  
              $download_file_urls = $order-&gt;get_downloadable_file_urls( $item['product_id'], $item['variation_id'], $item );
  
              $i = 0;
  
              foreach ( $download_file_urls as $file_url =&gt; $download_file_url ) {
                  echo '&lt;br/&gt;&lt;small&gt;';
  
                  $filename = woocommerce_get_filename_from_url( $file_url );
  
                  if ( count( $download_file_urls ) &gt; 1 ) {
                      echo sprintf( __('Download %d:', 'woocommerce' ), $i + 1 );
                  } elseif ( $i == 0 )
                      echo __( 'Download:', 'woocommerce' );
  
                  echo ' &lt;a href="' . $download_file_url . '" target="_blank"&gt;' . $filename . '&lt;/a&gt;&lt;/small&gt;';
  
                  $i++;
              }
          }
  
          // Variation
          echo    ($item_meta-&gt;meta) ? '&lt;br/&gt;&lt;small&gt;' . nl2br( $item_meta-&gt;display( true, true ) ) . '&lt;/small&gt;' : '';
  
      ?&gt;&lt;/td&gt;
      &lt;td style="text-align:left; vertical-align:middle; border: 1px solid #eee;"&gt;&lt;?php echo $item['qty'] ;?&gt;&lt;/td&gt;
      &lt;td style="text-align:left; vertical-align:middle; border: 1px solid #eee;"&gt;&lt;?php echo $order-&gt;get_formatted_line_subtotal( $item ); ?&gt;&lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;?php if ($show_purchase_note &amp;&amp; $purchase_note = get_post_meta( $_product-&gt;id, '_purchase_note', true)) : ?&gt;
      &lt;tr&gt;
          &lt;td colspan="3" style="text-align:left; vertical-align:middle; border: 1px solid #eee;"&gt;&lt;?php echo apply_filters('the_content', $purchase_note); ?&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  
  
  <p>And this is the result, an email with no thumbnail image. I've changed the <code>alt</code> attribute and the image size several times and it worked fine, however, <strong>the img src is still missing</strong>.</p>
  
  <pre><code>&lt;td style="text-align:left;vertical-align:middle;border:1px solid #eee;word-wrap:break-   word"&gt;
  &lt;img alt="img" height="150" width="150" style="vertical-align:middle;margin-right:10px"&gt;prueba test&lt;br&gt;&lt;small&gt;&lt;/small&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>What am I doing wrong?
  Thanks for any help!</p>