skip . of extension for filetype of image