Strip double .png/.jpeg extension from cached `img` icons.