add loop to preview image fetching