Magnetic properties of mesoscopic ultrathin magnetic films with uniaxial anisotropy