Proper fix for img_class (tests are still passing and it fallbacks nicel...

...y in case of old MW api)