Creates a Texture2D from an Image and then frees the image from memory.
A Texture2D object representing the created texture.
The image to create the texture from.