It sounds like you are just doing DrawImage when the mouse button is down.
What you need to do is set a variable to hold the state of the mousebutton. If that's set, draw the image.
When you click the button you can check the status of that variable, if it's set, or unset, change it to the opposite.
If that's not it, you'll need to post some source code.
What you need to do is set a variable to hold the state of the mousebutton. If that's set, draw the image.
When you click the button you can check the status of that variable, if it's set, or unset, change it to the opposite.
If that's not it, you'll need to post some source code.