IsImageFile function is now handling directories and missing files
Updating test modules