Changed code to retrieve LS images from CDN