Fixed possible non-thread safe mFileName and mCaptureCount.  Now they are only set and accessed in the ui thread.  Also added some error checking for compare images that don't match in size.  Cleaned up the test file a little bit.