Do thumbnailing in batches of 300 to handle vipsthumbnail bug