Implemented texture atlas generator.