Large-scale maps of M31 at middle and far infrared wavelengths