function abc_the_content($num_words) {
global $post;
$content = $post->post_content;
$content = strip_tags($content);
$content = wp_trim_words($content, $num_words, $more = null);
echo apply_filters('the_content', $content);
}
change the strip tags line to this one if you want to strip out only the img tag
$content = preg_replace("/<\/?img(.|\s)*?>/i", '', $content);