made helper method to resolve issue with carousel image loading