To clear the map, try this:



Function OnClearClick

 $PictureBox.Picture = ".\map.bmp"
 $PictureBox.Refresh

EndFunction