I figured it out. The loaded images had to be loaded as Bitmaps.

vb Code:
  1. Dim img, imgFile As Bitmap
  2.  
  3.  img = Image.FromFile(strTemp.Trim & ".jpg", True)

Then I wrote a function that compared the two images.

vb Code:
  1. Function CompareImages(ByVal imgA As Bitmap, ByVal imgB As Bitmap) As Boolean
  2.         Dim WidthA, WidthB, HeightA, HeightB As Integer
  3.         Dim i, j As Integer
  4.         Dim flag As Boolean
  5.  
  6.         widthA = imgA.Width
  7.         widthB = imgB.Width
  8.         heightA = imgA.Height
  9.         HeightB = imgB.Height
  10.  
  11.         flag = True
  12.         If WidthA = WidthB AndAlso HeightA = HeightB Then
  13.             For i = 0 To WidthA - 1
  14.                 For j = 0 To HeightB - 1
  15.                     If imgA.GetPixel(i, j) <> imgB.GetPixel(i, j) Then
  16.                         flag = False
  17.                         i = WidthA
  18.                         j = HeightA
  19.                     End If
  20.                 Next
  21.             Next
  22.         Else
  23.             flag = False
  24.         End If
  25.  
  26.         CompareImages = flag
  27.     End Function