Add paragraph and images ids to html output.