Prevent multiple thumbnail generations