How do I add a customized parameter to image links
You can do this with a preprocess function THEMENAME_preprocess_field and check whether the field is an image and it has a URL

function THEMENAME_preprocess_field(&amp;$variables) {
  if($variables["element"]["#field_type"] == "image"){
    if(isset($variables["items"][0]["content"]["#url"])){
      $variables["items"][0]["content"]["#url"]-&gt;setOption('query', ['param' =&gt; '0']);
    }
  }
}