Robust Image Watermarking based on Cross-Attention and Invariant Domain Learning