Added mipmap generation to Texture class.