modified the ToTensor transform to properly work with grasyscale images

2 jobs for to-tensor-gray in 10 minutes and 6 seconds (queued for 1 second)