fix wrong filetype for image