I am trying to build a view style plugin module. I need to change the rendering of image field for the view that uses this style plugin. To be more specific I need to add/change some attributes to <img> tag in the output.
For instance instead of this:
<img src="some_image.jpg" width='123' height='123' alt=''>
I would like to have this:
<img src="some_placeholder.gif" data-src='some_image.jpg' class='my-class' width='123' height='123' alt=''>
At first I have tried to use ' template_preprocess_image', but it affects all images on the website, while I need to change only views that use my views_plugin_style. I am very new to Backdrop API so I apologize if I have overlooked some obvious solutions.