Improving the resolution obtained in lensless imaging with spatially shaped high-order harmonics