Changing the TileFactory into a SpriteFactory.

It should now handle width and height in a spritesheet.