fixed handling of alpha palettes in PNG extraction.