Clothing retailer Gap has apologized for a controversial ad campaign that some said was racially insensitive.

The photo for a clothing line called Gap Kids shows a group of girls in acrobatic poses. The image also depicts a Caucasian girl resting her arm on the head of an African American girl.

Social media pounced on the image, commenting that the African-American girl was cast as an armrest, Fortune reported.

 >> Critics claim Ellen DeGeneres' Gap Kids ad has racist undertones

One Twitter user was quick to point out that the current photo was similar to one used last year but with roles reversed.

The mother of both girls took to Twitter to explain that they are adoptive sisters.

Gap told Fortune, "As a brand with a proud 46-year history of championing diversity and inclusivity, we appreciate the conversation that has taken place and are sorry to anyone we've offended."

>> Read more trending stories 

The company plans to remove the offending image.

The advertising campaign promotes GapKids X ED, which is Ellen DeGeneres' line for Gap.