This adds the ability to export to the most "compatible" modern ICNS format for a particular layer.
This ports ICNS loading code from Brion Vibber's 2004 plug-in. It extends support for ICNS files that contain PNG or JP2 format icons.