Minor tweak to lazyload non-image elements

I just added a conditional around the $("<img />") loading bit to make sure the lazyloaded element is an image.