move getBitstreamSizes to Item class