Cache mimetype icons

Saves a lot of time calling file_exists when loading large folders containing mostly the same type of files (i.e. large image folders)

cc @MTGap @karlitschek @DeepDiver1975