Added procedures to retrieve texture size