DrawMask added in order to allow higher ingmae resolutions