code: private boolean checkIfLoaded(String filename) {
  
          String title;
          if (basefilename.lastIndexOf('.') > 0)
              title = basefilename.substring(0, basefilename.lastIndexOf('.'));
          else
              return false;
  
          if (filePhotos.containsKey(title))
              return true;
  
          return false;
      }
docs: The assumption here is that for a given set only unique file-names will be loaded and the title field can be used. Later change to use the tags field (
  OrigFileName) and strip off the suffix.
  
  @param filename
  @return