Adding a class to img DOM element