change FileType to ImageType