Retain manual additions to images.json during --calcimagewidths updates
Do not crash when non-image files are in images/ directory
Strip path before processing files in buildImageDictionary()