Magnetic field induced directional localization in a 2D rectangular lattice