Adding ids to pictures