Extract file name from thumbnail only from first occurrence