Changed Mask save-load implementation to one through serialization, it's now simplier