Images are obtained by img.slice[:,:,:,0] since original images are 4D with 4th dimension having length 1.