Fix error message about "indexed images" when opening certain images.
Replace quality enum with interface.