Added retry mechanism for images.