fixed: addDir fails to import 4-char extensions

addDir now checks chars after the last '.' in the file name, instead of the last 3 chars. Without this, images with 4-character extensions (.jpeg, .tiff, ...) were skipped.