How to get theme screenshot

You can use WP_Theme::get_screenshot() method, which returns the screenshot url.

For example:

 $themes = wp_get_themes();
 foreach( $themes as $theme ){
      echo '<img src="'.esc_url($theme->get_screenshot()).'" />';
 }