Large area self-assembled masking for photonic applications