Converting FIR images to jpg