Added checks for image and allows users to pass nifti objects (it just writes them out to a tempfile and then runs fsl)