Added a utility to convert indexed-palette images into a map.