Updated Texture2D and TextureCube to new image loading api