Added origin to render function of Texture2D