adding css classes into a specific image field is there a way to add css classes only to specific image field?

with the image field name field_news_images:

&lt;img class="thumbnail" src="../images/something.png"/&gt;


There are no options to add the classes in the manage display
As of Drupal 8.2

function MYTHEME_preprocess_field(&amp;$vars) {
  if ($vars['element']['#field_name'] == 'field_news_images') {
    foreach($vars['items'] as $key =&gt; $item){
      $vars['items'][ $key ]['content']['#item_attributes']['class'][] = 'thumbnail';
    }
  }
}