Added transformation methods for masks

Masks can now be flipped and inverted, and these transformations may be
performed from mask data files. This makes defining new masks much
easier since they are usually flipped or inverted versions of other
masks. Also differentiated between mask default dimensions and current
dimensions for future implementation.