Added new function the get the width and height of a texture