API changes: Read palettes automatically, don't pass around streams