Refactored writers, first attempt to saving color maps