Update index.js

List only files that match `imageTypes`.