A high-resolution map of the W3 region at far-infrared wavelengths