More work on sprite manager.