Hide loader gif when image is loaded

Setting a class on the slide when the img tag is inserted, so the background image on the slide can be removed.