Convert a JASC colour palette .pal file into a png image with one pixel for each colour in the palette.
Handles ad-hoc generalisations of the JASC-PAL format:
- palettes can be any size between 1 and 65536 colours
- transparency is allowed using the RGBA option.