[WIP] refactor sprite and spriteatlas