Sub Cam_Complete(Success As Boolean, Image as Bitmap, VideoPath As String)
If Success Then
If Image.IsInitialized Then
btnDelete_Click 'delete previous chached images'
imgCL.ContentMode = imgCL.MODE_FIT
imgCL.Bitmap = Image
Dim out as OutputStream = File.OpenOutput(path, fname, False)
Image.Rotate(90).WriteToStream(out, 50, "JPEG")
Dim p as Phone
p.AddImageToAlbum(LoadBitmap(path, fname))
End If
End If
End Sub