Refactor of Sprite Editor