Added the ability to lazy load images on tab change