Add class attribute to IMG tag