refactor(view) checkExtension -> isImage