Helpers for SpriteRepacker