Does the mask file have to be vector?

Yes. Akuafoil and Spot UV masks must be vector files (PDF, AI or EPS) so edges are crisp and line up exactly. Your full-color artwork can be a print-ready PDF, or JPG, PNG and other image formats.