drupal 8 theme image render array
$image_variables = [
'#theme' => 'image',
'#uri' => $value['snippet']['thumbnails']['default']['url'],
'#alt' => $title,
'#title' => $title,
'#width' => $width,
];
$image_variables = [
'#theme' => 'image_style',
'#uri' => $value['snippet']['thumbnails']['default']['url'],
'#alt' => $title,
'#title' => $title,
'#width' => $width,
'#style_name' => $image_style,
];