Renumber images and headers.