integrate catch first image function again for archive thumbnails