added IsSameImage()