Make SpriteTexture "has-a" texture, not "is-a" texture. Thus sprite.texture.width means rawWidth, sprite.width means trimmed width.
also rename SpriteTexture to Sprite
also rename atlas.textures to sprites