create the partial for file types
remove the unused images