added size reading to texture manager