Added option for lazy loading background images

This will check to see if each element is an image and will either set
the background image or change the src accordingly.