using nilearn fit to transform func for image
further fix to use fit transform