made image fetching more efficient