refined handling of png icon data; should fix numerous crashes and work more efficiently on recent gjs versions.