Improve wfx_info_file() function

Return 'image' if image filetype found. The core WordPress wp_ext2type() doesn't have functionality to detect image files.