Updated main to work with the new Texture2D changes.