preserve the classes of image tag when replacing class lazy with lazy-loaded