working refactor of gfx to embed some info inside the spritesheet object itself