use file media_type to easily detect icon