Application of a Compact FEL on THz Imaging