Resize is a Python object, so you would need to create an instance:
res = transforms.Resize((224, 224))
image_BW = res(image_BW)
...

or use the functional API again via: torchvision.transforms.functional.resize.