(bug) whitelist image files
(refactor) fixed typo