I have shape like the following image , I need to crop the shape out from the background context in Javascript. The shape data is in the format of base64. Can anyone suggest