[vb.net] Save Image from Bitmap?

I have found an article describing the problem, but have been unsuccessful in getting it to work. See if an image is opened then saved it seems to think the image is opened (therefore locked), so it can’t be resaved to the same location.

http://support.microsoft.com/?id=814675

Open:

Dim dlg As OpenFileDialog = New OpenFileDialog()
dlg.Filter = "Tile files (*.png)|*.png|All files (*.*)|*.*"
Dim res As DialogResult = dlg.ShowDialog()
If res = 1 Then
 workingimage = Image.FromFile(dlg.FileName)
 workingimagesave = dlg.FileName
End If

Save:

workingimage.save(workingimagesave)

Thanks.