Fixed bad texture rectangles causing images to appear black; moved sprite rendering code to SpriteObject; made all objects to inherit from SpriteObject