Yes, your image will be converted to a grayscale image, but an additional alpha channel will be added.
You could try to use convert('L') instead.
Also, note that you might have to unsqueeze the channel dimension after converting it to grayscale.