Pattern formation and magnetic anisotropy in thin metal films by