change first argument of sprite to texture.
move Texture class from graphics by asset.