modified a method of ImageContainer