Better image path normalization
Fixed case where no images are detected