Refactored the helper function to lazy load images, so it can also be used for setting background images.