Don’t special-case patterns anymore. They’re PBM images just like icons, so just lump them with the other media (but as a different type, so we have a guaranteed collision-free ID range that matches the pattern numbers).