woocommerce only
<?php $product = new WC_product($product_id); echo $product->get_image(); // accepts 2 arguments ( size, attr ) ?>