@aksangwan,
You can set display property of the image to none to hide the image on clicking the button.
If this doesn’t solve your requirements, kindly create JSFiddle with your use-case, so that we can look into the code, understand the scenario better and help you out.
__
Priyanka M S
Team CanvasJS