changed output nifti header

Set datatype in the output nifiti according to the bittype of the fdf
header.