Fixed crash when unexpected files found in images directory. Thanks Mekire