modified to copy data in add() of ImageContainer