Adding class after load feature

There are cases where elements may need a different CSS style applied after lazyload has swapped the preload image out for the main image.

An example is background image styling. We have a small preloader image which requires the background-size property to be 'auto'. When lazyload loads the main image though, we need the background-size property to be 'cover'.