How to resize selectively go.Picture while keeping ratio?

I’d like to know a way to resize go.picture with keeping ratio.
I saw there is a way to customize resizing tool but I think this will make all resizing like shapes to keep ratio but I want only resizing with keeping ratio for one node category called ‘image-card’.
Can you please help me to find how to achieve this?

Override ResizingTool.computeReshape to return false when resizing an object whose GraphObject.part has Part.category === “image-card”.