Fixed: non-image files are skipped

Previously we weren't doing enough to make sure we skip unwanted files when trying to process the image files.

This commit fixes this by explicitly skipping hidden files (starting with '.') and finishing the 'else' statement to skip anything that doesn't pass the test.
New build