Refactoring, improving and added cube map array manager.